// BackLightTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "gtest/gtest.h"
#include "BackLightTest.h"
/* Inital the environment for testing*/
int _tmain(int argc, _TCHAR* argv[])
{
	testing::InitGoogleTest(&argc, argv);
	return RUN_ALL_TESTS();
}

class BackLightTest :public testing::Test
{
protected:
	static void SetUpTestCase()
	{
		bl = new BackLight();
	}
	static void TearDownTestCase()
	{
		delete bl;
		bl = NULL;
	}
	static BackLight* bl;
};
BackLight* BackLightTest::bl = NULL;

//****************************************************************************************/
//Function: Increase the brightness of the screen
//Purpose:	Set the brightness from 0 to 8.
//Return: If successful occurs, the return value is 1, otherwise it return 0.
//****************************************************************************************/

//****************************************************************************************/
//Function: Decrease the brightness of the screen
//Purpose:	Set the brightness from 8 to 0.
//Return: If successful occurs, the return value is 1, otherwise it return 0.
//****************************************************************************************/
TEST_F(BackLightTest,DECREASE)
{
	EXPECT_EQ(1,bl->DecreaseBrightness());
}

TEST_F(BackLightTest,INCREASE)
{
	EXPECT_EQ(1,bl->IncreaseBrightness());
}